package rocket.server;

/**
 * @author justin
 * the enum for access privaleges
 */
public enum Access {

	TRAINER, NURSEJOY, PROFESSOR, BILL;
	
	/**
	 * @return
	 * determines what to do with each access action
	 */
	public Action[] getActions() {
		switch(this) {
		case BILL:
			break;
		case PROFESSOR:
			break;
		case NURSEJOY:
			break;
		case TRAINER:
			break;
		default: 
			break;
		}
		return new Action[0];
	}
	
	public String grants() {
		String grants;
		switch(this) {
		case BILL:
			// TODO needs GRANT_OPTION also, can't be given in same command as ALL though?
			grants = "ALL";
			break;
		case PROFESSOR:
			grants = "ALL";
			break;
		case NURSEJOY:
			grants = "ALL";
			break;
		case TRAINER:
			grants = "ALL";
			break;
		default:
			grants = "USAGE";
			break;
		}
		return grants;
	}
	
	
}
